<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生管理后台</title>
    <link rel="stylesheet" href="../css/manage.css">
    <script src="../js/jquery.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/manage.js"></script>
</head>
<body>
<!-- 顶部 -->
<div class="top">
    <div>商务酒店后台管理</div>
    <div>
        <div>
            <div id="loginUser">123</div>
        </div>
        <div>
            <div><a onclick="loginOut()">退了</a></div>
        </div>
    </div>
</div>
<div class="main">
    <!-- 左边 -->
    <div class="left">
        <div class="item">
            <div class="header" id="permissionManage" onclick="ChangeMenu(this);">权限管理</div>
            <div class="content">
                <div id="permission" onclick="go(this,'/permission/permission-list.html')">项目权限</div>
                <div id="role" onclick="go(this,'/role/role-list.html')">角色权限</div>
                <div id="user" onclick="go(this,'/user/user-permission.html')">人员权限</div>
            </div>
        </div>
        <div class="item">
            <div class="header" id="userManage" onclick="ChangeMenu(this);">用户管理</div>
            <div class="content hide">
                <div id="userList" onclick="go(this,'/user/user-list.html')">用户列表</div>
                <div id="loginInfo"  onclick="go(this,'/login/login-info.html')">登录记录</div>
            </div>
        </div>
        <div>
            <div class="header" id="studentManage" onclick="ChangeMenu(this);">学员管理</div>
            <div class="content hide">
                <div id="studentList" onclick="go(this,'/user/student-list.html')">学员列表</div>
                <div id="teamList" onclick="go(this,'/team/team-list.html')">小组列表</div>
                <div id="teamInfo" onclick="go(this,'/team/team-info.html')">调组记录</div>
            </div>
        </div>
        <div>
            <div class="header" id="signManage" onclick="ChangeMenu(this);">签到管理</div>
            <div class="content hide">
                <div id="signList" onclick="go(this,'/reserve/sign-list.html')">签到列表</div>
                <div id="signInfo" onclick="go(this,'/reserve/sign-info.html')">签到记录</div>
            </div>
        </div>
        <div>
            <div class="header" id="logsManage" onclick="ChangeMenu(this);">日报管理</div>
            <div class="content hide">
                <div id="myLogs" onclick="go(this,'/logs/my-logs.html')">我的日报</div>
                <div id="LogsList" onclick="go(this,'/logs/logs-list.html')">学员日报</div>
            </div>
        </div>
    </div>
    <!-- 右边 -->
    <div class="right">

    </div>
</div>

<script>
    function setLeftNavData(data) {
        $("#roleId").val(data.roleId);
        let html = "";
        if (data.roleId == 1){
            html += " <div>\n" +
                "     <div class='header' id='permissionManage' onclick='ChangeMenu(this);'>权限管理</div>\n" +
                "     <div class='content'>\n" +
                "         <div id='permission' onclick=\"go(this,'/permission/permission-list.html')\">项目权限</div>\n" +
                "         <div id='role' onclick=\"go(this,'/role/role-list.html')\">角色权限</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='userManage' onclick='ChangeMenu(this);'>用户管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='userList' onclick=\"go(this,'/user/user-list.html')\">用户列表</div>\n" +
                "         <div id='loginInfo' onclick=\"go(this,'/login/login-info.html')\">登录记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='studentManage' onclick='ChangeMenu(this);'>学员管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='studentList' onclick=\"go(this,'/user/student-list.html')\">学员列表</div>\n" +
                "         <div id='teamList' onclick=\"go(this,'/team/team-list.html')\">小组列表</div>\n" +
                "         <div id='teamInfo' onclick=\"go(this,'/team/team-info.html')\">调组记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                "     <div class='header' id='signManage' onclick='ChangeMenu(this);'>签到管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='signList' onclick=\"go(this,'/sign/sign-list.html')\">签到列表</div>\n" +
                "         <div id='signInfo' onclick=\"go(this,'/sign/sign-info.html')\">签到记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='logsManage' onclick='ChangeMenu(this);'>日报管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='myLogs' onclick=\"go(this,'/logs/my-logs.html')\">我的日报</div>\n" +
                "         <div id='LogsList' onclick=\"go(this,'/logs/logs-list.html')\">学员日报</div>\n" +
                "     </div>\n" +
                " </div>";
        }
        else if (data.roleId == 3 || data.roleId == 4){
            html += " <div>\n" +
                "     <div class='header' id='userManage' onclick='ChangeMenu(this);'>用户管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='loginInfo' onclick=\"go(this,'/login/login-info.html')\">登录记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='studentManage' onclick='ChangeMenu(this);'>学员管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='studentList' onclick=\"go(this,'/user/student-list.html')\">学员列表</div>\n" +
                "         <div id='teamList' onclick=\"go(this,'/team/team-list.html')\">小组列表</div>\n" +
                "         <div id='teamInfo' onclick=\"go(this,'/team/team-info.html')\">调组记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='signManage' onclick='ChangeMenu(this);'>签到管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='signInfo' onclick=\"go(this,'/sign/sign-info.html')\">签到记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='logsManage' onclick='ChangeMenu(this);'>日报管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='LogsList' onclick=\"go(this,'/logs/logs-list.html')\">学员日报</div>\n" +
                "     </div>\n" +
                " </div>";
        }
        else if (data.roleId == 5){
            html += " <div>\n" +
                "     <div class='header' id='userManage' onclick='ChangeMenu(this);'>用户管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='loginInfo' onclick=\"go(this,'/login/login-info.html')\">登录记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='signManage' onclick='ChangeMenu(this);'>签到管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='signList' onclick=\"go(this,'/sign/sign-list.html')\">签到列表</div>\n" +
                "         <div id='signInfo' onclick=\"go(this,'/sign/sign-info.html')\">签到记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='logsManage' onclick='ChangeMenu(this);'>日报管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='myLogs' onclick=\"go(this,'/logs/my-logs.html')\">我的日报</div>\n" +
                "     </div>\n" +
                " </div>";
        }
        else {
            html += " <div>\n" +
                "     <div class='header' id='userManage' onclick='ChangeMenu(this);'>用户管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='loginInfo' onclick=\"go(this,'/login/login-info.html')\">登录记录</div>\n" +
                "     </div>\n" +
                " </div>\n" +
                " <div>\n" +
                "     <div class='header' id='logsManage' onclick='ChangeMenu(this);'>日报管理</div>\n" +
                "     <div class='content hide'>\n" +
                "         <div id='myLogs' onclick=\"go(this,'/logs/my-logs.html')\">我的日报</div>\n" +
                "     </div>\n" +
                " </div>";
        }
        html += " <div>\n" +
            "     <div class='header' id='wordManage' onclick='ChangeMenu(this);'>单词管理</div>\n" +
            "     <div class='content hide'>\n" +
            "         <div id='wordList' onclick=\"go(this,'/word/word-list.html')\">单词列表</div>\n" +
            "         <div id='myCollect' onclick=\"go(this,'/word/my-collect.html')\">我的收藏</div>\n" +
            "     </div>\n" +
            " </div>";
        $("#leftNav").html(html);
    }
</script>
</body>
</html>